package com.hnust.api;

import com.hnust.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(
        name = "ClassApi",
        url = "${feign.baseUrls}"
)

@Component
public interface ClassApi {
    @GetMapping("/check/getClass")
    Result<List<String>> getClassInfo(@RequestParam(value = "tea_id") String tea_id,
                                    @RequestParam(value = "testid") String testid);
    @GetMapping("/check/getClassId")
    String getClassId(@RequestParam("cla_name") String classname);

    @GetMapping("/check/getClassMsgByMajor_Grade")
    Boolean getClassMsgByMajor_Grade(@RequestParam("Grade") String grade,@RequestParam("Major") String major);
}
